package xyz.renyumeng.xkm.model.order;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import xyz.renyumeng.xkm.model.base.BaseEntity;

/**
 * 订单信息
 *
 * @author renyumeng
 * @date Created in 8:47 2023/6/30
 */

@Data
@ApiModel(description = "订单信息")
@TableName("order_info")
@EqualsAndHashCode(callSuper = true)
public class OrderInfo extends BaseEntity {
    /**
     * 串行版本uid
     */
    private static final long serialVersionUID = 1L;

    /**
     * 购买用户id
     */

    @ApiModelProperty(value = "购买者id")
    @TableField("`purchase_user_id`")
    private Long purchaseUserId;

    /**
     * 所有者id
     */

    @ApiModelProperty(value = "拥有者id")
    @TableField("`owner_id`")
    private Long ownerId;

    /**
     * 价格
     */

    @ApiModelProperty(value = "价格")
    @TableField("`price`")
    private Double price;

    /**
     * 产品id
     */
    @ApiModelProperty(value = "商品id")
    @TableField("`product_id`")
    private Long productId;


    @ApiModelProperty(value = "备注")
    @TableField("`order_desc`")
    private String orderDesc;

    @ApiModelProperty(value = "提货方式(0自提1送货上门)")
    @TableField("`delivery`")
    private Integer delivery;

    @ApiModelProperty(value = "地址信息")
    @TableField("`address`")
    private String address;

    @ApiModelProperty(value = "是否支付")
    @TableField("`is_payed`")
    private Integer isPayed;
}
